import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/parkMp/list',
    method: 'post',
    data: query
  })
}

export function deleteParkMp(query) {
  return request({
    url: '/parkMp/deleteParkMp',
    method: 'post',
    data: query
  })
}

export function createParkMp(query) {
  return request({
    url: '/parkMp/createParkMp',
    method: 'post',
    data: query
  })
}

export function updateParkMp(query) {
  return request({
    url: '/parkMp/updateParkMp',
    method: 'post',
    data: query
  })
}

export function parkMpDetail(id) {
  return request({
    url: '/parkMp/' + id,
    method: 'get',
  })
}

//微信公众号模板消息配置列表
export function listTemplateMsgConf(id) {
  return request({
    url: '/parkMp/listTemplateMsgConf/' + id,
    method: 'get',
  })
}

//新微信公众号模板消息配置
export function updateTemplateMsgConf(query) {
  return request({
    url: '/parkMp/updateTemplateMsgConf',
    method: 'post',
    data: query
  })
}